<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<link rel="shortcut icon" href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/img/logo.png"/>
	<title>退款详情</title>
	<link href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/mui/css/mui.min.css" rel="stylesheet" />
	<link href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/css/other/all.css" rel="stylesheet" />
	<link href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/css/other/app.css?v=1" rel="stylesheet" />
	<link href="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/font/iconfont.css" rel="stylesheet" />
	<script src="https://tcsc.oss-cn-hangzhou.aliyuncs.com/static/wechat/frame/mui/js/mui.min.js"></script>
</head>
<style type="text/css">
	.refund-details .refund-application .title{height: 40px;line-height: 40px;}
	.refund-details .refund-application .refund{padding: 5px 10px}
	.commodity_details:nth-of-type(1){padding-top: 5px;}
	.commodity_details:nth-last-of-type(2){padding-bottom: 5px}
	.commodity_details{background:#fafafa;}
	.refund-details .refund-application ul li{height: 35px;line-height: 35px;}
	.refund-details .refund-application ul{height: 45px}
</style>
<body>
<div class="refund-details">
	<header>
		<p>{{if eq .info.agree "0"}}
			请等待卖家回复
			{{else if eq .info.agree "1"}}
			{{if eq .info.check "0"}}
			请等待卖家检查货物
			{{else if eq .info.check "1"}}
			{{if eq .info.return "0"}}
			请等待卖家打款
			{{else}}
			卖家已打款
			{{end}}
			{{else if eq .info.check "2"}}
			货物检查不合格(如有疑问请自行联系卖家)
			{{end}}
			{{else}}
			卖家不同意退款
			{{end}}</p>
	</header>
	<div class="state">
		<h1>您已成功发起退款申请，请耐心等待商家处理</h1>
		<div>
			<p><span>•</span>商家同意后，系统将退款给您,如果是已经到货的请返还货物。</p>
			<p><span>•</span>如果商家拒绝，您可以修改退款申请后再次发起，商家会重新处理。</p>
			<ol>
				<span id="del" data-id={{.info.id}}>撤销申请</span>
				{{if eq .info.agree "2"}}
				<a href="/mobile/my/order_return_apply?rid={{.info.id}}">修改申请</a>
				{{end}}
			</ol>
		</div>
	</div>
	<div class="refund-application">
		<h1 class="title">退款信息</h1>
		{{range .info.product}}
<!-- 		<a href="/mobile/column/product_content?id={{.id}}">
		<div class="refund">
			<img src="{{.pathname}}">
			<p class="overpl3 fr">{{.title}}</p>
		</div>
		</a>
 -->
		<div class="commodity_details">
			<div class="commodity">
				<a class="one" href="/mobile/column/product_content?id={{.id}}">
					<div>
						<img src="{{.pathname}}">
						<div>
							<p>{{.title}}</p>
							<p>
								规格 : {{.number}}{{.spec}}/箱<br>
								型号 : {{.model}}<br>
							</p>
							<p class="bfd">￥ {{.price}}<span class="fr">x{{.num}}</span></p>
						</div>
					</div>
				</a>
			</div>
		</div>
		{{end}}



		<div class="sm">
			<p>退款类型：{{if eq .info.type "0"}}退货{{else}}换货{{end}}</p>
			<p>退款原因：{{.info.whys}}</p>
			<p>订单金额：￥{{.info.money}}</p>
			{{if .info.returnmoney}}
			{{if ne .info.returnmoney "0.00"}}
			<p>退款金额：￥{{.info.returnmoney}}</p>
			{{end}}
			{{end}}
			<p>申请时间：{{.info.addtime}}</p>
			<p>订单编号：{{.info.ordernum}}</p>
			{{if .info.intr}}
			{{if ne .info.intr ""}}
			<p>退款说明：{{.info.intr}}</p>
			{{end}}
			{{end}}
			{{if .info.checkresult}}
			{{if ne .info.checkresult ""}}
			<p>检查结果：{{.info.checkresult}}</p>
			{{end}}
			{{end}}
			{{if .info.result}}
			{{if ne .info.result ""}}
			<p>调查结果：{{.info.result}}</p>
			{{end}}
			{{end}}
			{{if .info.returntime}}
			{{if ne .info.returntime ""}}
			<p>退款时间：{{.info.returntime}}</p>
			{{end}}
			{{end}}
		</div>
		<ul>
			<li><a href="/mobile/contact_service?id={{.info.gid}}"><span class="mui-icon iconfont">&#xe805;</span>联系卖家</a></li>
			<li><a href="tel:{{if .info.tel}}{{.info.tel}}{{else}}{{$.system.tel}}{{end}}"><span class="mui-icon iconfont">&#xe79a;</span>拨打电话</a></li>
		</ul>
	</div>
</div>
</body>
{{template "wechat/public/share.html" .}}
<script>
	document.getElementById('del').addEventListener('tap',function(){
		var id=this.getAttribute("data-id")
		mui.confirm("您确定要撤销申请吗?","提示",function(data){
			if(data.index){
				mui.post(window.location.href,{id:id},function(res){
					if(res){
						mui.alert("撤销成功",function(){
							window.location.href='/mobile/my'
						})
					}else{
						mui.toast('撤销失败,请重试')
					}
				})
			}
		})
	})
</script>
</html>
